<if condition="$list['type'] eq 2">
    <if condition="count($list['res']) gt 0">
        <switch name="list.style">
            <case value="1">
                <script src="__PUBLIC__/Core/js/ext/slider/js/jquery.slides.min.js"></script>
                <link href="__PUBLIC__/Core/js/ext/slider/css/slider.css" rel="stylesheet" type="text/css"/>
                <div style="height: {$list.ad.height};width:{$list.ad.width}px;">

                    <div id="slide_{$list.ad.pos}" style="">
                        <volist name="list.res" id="vo">
                            <a href="{$vo.link}" title="{$vo.title}" target="_blank"><img
                                    src="{$vo.advspic|getThumbImageById=$list['ad']['width'],$list['ad']['height']}"
                                    alt="{$vo.title}"></a>
                        </volist>
                        <a href="#" class="slidesjs-previous slidesjs-navigation"><i
                                class="glyphicon glyphicon-chevron-left"></i></a>
                        <a href="#" class="slidesjs-next slidesjs-navigation"><i
                                class="glyphicon glyphicon-chevron-right"></i></a>
                    </div>

                </div>
                <script>
                    $(function () {
                        $("#slide_{$list.ad.pos}").slidesjs({
                            navigation: false
                        });
                    })
                </script>
            </case>
            <case value="2">
                <script src="__PUBLIC__/Core/js/ext/kinmaxshow/js/kinmaxshow.min.js"></script>
                <div style="width:{$list.ad.width}px;height:{$list.ad.height}px">
                    <div id="slide_{$list.ad.pos}">
                        <volist name="list.res" id="vo">
                            <div>
                                <a href="{$vo.link}" target="_blank" title="{$vo.title}"><img
                                        src="{$vo.advspic|getThumbImageById=$list['ad']['width'],$list['ad']['height']}"
                                        alt="{$vo.title}"></a>
                            </div>


                        </volist>
                    </div>
                </div>
                <script type="text/javascript">
                    $(function () {
                        var h_s = {$list.ad.height};
                    $("#slide_{$list.ad.pos}").kinMaxShow({height: h_s});});
                </script>
            </case>

            <case value="3">

                <link id="main_stylesheet" rel="stylesheet" href="__PUBLIC__/Core/js/ext/aktuals/css/style.css"
                      type="text/css"/>
                <!--[if lte IE 7]>
                <style type="text/css">
                    html .jqueryslidemenu {
                        height: 1%;
                    }

                    /* Holly Hack for IE7 and below */
                </style>
                <![endif]-->
                <script type="text/javascript" src="__PUBLIC__/Core/js/ext/aktuals/js/jquery.easing.1.3.js"></script>
                <script type="text/javascript" src="__PUBLIC__/Core/js/ext/aktuals/js/jquery.scrollTo-min.js"></script>
                <script type="text/javascript" src="__PUBLIC__/Core/js/ext/aktuals/js/aktuals.js"></script>
                <div class="header_slider hidden-sm hidden-xs"
                     style="height: 333px;background-color: #fff;box-shadow: 0px 2px 8px #BBB;">
                    <div class="content">
                        <div class="homepage-wrapper">
                            <div class="homepage-slider">
                                <span class="rounded-corners">&nbsp;</span>

                                <div id="aktuals_field" style="overflow:hidden; position:relative;width:100%;">
                                    <table>
                                        <tr>
                                            <php>$j=1;
                                                $count = count($list['res']);
                                            </php>
                                            <volist name="list.res" id="vo">
                                                <td>

                                                    <div class="homepage-slider-item" id="aktuals{$i}" >
                                                        <img src="{$vo.advspic|getThumbImageById=1070,305}" style="width: 100%" class="img-responsive">
                                                    </div>
                                                </td>
                                                <php>
                                                    if($j >= $count){
                                                    $j=1;
                                                    }else{
                                                    $j++;
                                                    }
                                                </php>
                                            </volist>

                                        </tr>
                                    </table>
                                </div>
                                <div class="navigation" style="color: #cccccc">
                                    <php>$j=1;</php>
                                    <volist name="list.res" id="vo">
                                        <a href="#" id="aktuals{$j}_btn" onclick="scrollToElem('{$j}'); return false;"
                                           class="aktuals_btn <if condition='$j==1'>active</if>">{$j}</a>
                                        <php>
                                            if($j >= $count){
                                            $j=1;
                                            }else{
                                            $j++;
                                            }
                                        </php>
                                    </volist>

                                </div>
                                <script>slider_count = {$count};</script>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>


            </case>


        </switch>
    </if>


    <elseif condition="$list['type'] eq 3"/>
    <div style="width:{$list['width']};height:{$list['height']};background: #cecece;">
        <div style="margin:0px auto;width:150px;line-height: 30px;">{$list.advstext}</div>
    </div>
    <elseif condition="$list['type'] eq 1"/>
    <if condition="$list['advspic'] neq 0">
        <a href="{$list.link}"><img src="{$list.advspic|get_cover='path'}"/></a>
    </if>

    <elseif condition="$list['type'] eq 4"/>
    {$list.advshtml}
</if>
<!-- add more -->